#!/bin/sh
dayTime=`date +%Y%m%d`

cliRoot='/data/wwwroot/g_biz/cli/IniData/WikiComment/initWikiCommentCounter.php';
folder="/data/logs_bak/biz/initWikiCommentCounter/"$dayTime
logRoot=$folder'/initWikiCommentCounter.php_'
if [ ! -d "$folder" ]; then
  mkdir -p $folder
fi
for (( i = 0; i < 10; i++ )); do
		php  $cliRoot $i> $logRoot$i'.log' &
		echo 'success';
	done